package com.tourism.website.personal.mapper;

import com.tourism.website.personal.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tourismwebsite.personal.dto.PersonalDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kevin
 * @since 2024-06-11
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Update("update user set nick_name=#{nickName}, email=#{email}," +
            "phonenumber=#{phonenumber},sex=#{sex},avatar=#{avatar},password=#{password}" +
            " where user_name=#{userName}")
    int update(String nickName,String email,String phonenumber,String sex,String avatar,String password,String userName);


}
